package xyz.longicorn.driver.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import xyz.longicorn.driver.pojo.enums.Category;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class FileInfo implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;
    private Integer uid;
    private String name;
    private String hash;
    private Long folderId;
    private String type;

    private Category category;
    private Long size;
    private String path;
    private Date createTime;
    private Date updateTime;
    private Long status;
}
